package com.shy.delegate.committee.student;

import java.util.HashMap;

public class Monitor implements Student{
     private final static HashMap<String, Student> STUDENT_HASH_MAP;

     static {
        STUDENT_HASH_MAP = new HashMap<>(4);
        STUDENT_HASH_MAP.put("学习委员", new StudyCommitteeMember());
        STUDENT_HASH_MAP.put("劳动委员", new CommissaryInChargeOfPhysicalLabor());
        STUDENT_HASH_MAP.put("文艺委员", new IiteratureAndArtCommitteeMember());
     }
    @Override
    public void registrationProgram(String role) {
        Student student = STUDENT_HASH_MAP.get(role);
        student.registrationProgram(role);
    }
}
